package com.cloudpan;

import cn.dev33.satoken.SaManager;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.swagger2.annotations.EnableSwagger2;


@SpringBootApplication
@EnableTransactionManagement
@EnableAsync
@MapperScan(basePackages = "com.cloudpan.mapper")
@Slf4j
@EnableSwagger2
public class CloudPanApplication {

    public static void main(String[] args) {
        SpringApplication.run(CloudPanApplication.class,args);
        System.out.println("-------------------------------------------");
        log.info("启动成功，Sa-Token 配置如下：{}",SaManager.getConfig());
    }
}
